package com.show.business.device.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.show.business.common.core.domain.AjaxResult;
import com.show.business.device.bean.DeviceAlarm;
import com.show.business.device.bean.UartTmp;
import com.show.business.device.bean.vo.AlarmTmpVo;

import java.util.List;

/**
 * <p>
 * 设备告警 服务类
 * </p>
 *
 * @author dvlp
 * @since 2024-09-30
 */
public interface IDeviceAlarmService extends IService<DeviceAlarm> {
    /**
     * 列表查询
     * @param deviceAlarm
     * @return
     */
    List<DeviceAlarm> getList(DeviceAlarm deviceAlarm);

    /**
     * 新增
     * @param uartTmp
     * @return
     */
    AjaxResult saveInfo(UartTmp uartTmp);

    /**
     * 详情
     * @param id
     * @return
     */
    AjaxResult getInfo(String id);

    /**
     * 删除
     * @param id
     * @return
     */
    AjaxResult delInfo(String id);
    /**
     * 批量删除
     * @param ids
     * @return
     */
    AjaxResult delInfos(String[] ids);

    /**
     * 根据imei查询设备告警相关信息
     * @param deviceAlarm
     * @return
     */
    List<DeviceAlarm> getAlarmListByImei(DeviceAlarm deviceAlarm);

    /**
     * 检测到离线设备发送短信，修改离线状态
     */
    void updateDeviceAlarm(AlarmTmpVo tmp);
}
